import NProgress from 'nprogress' // 进度条
import router from './router'

NProgress.configure({ showSpinner: false }) // 进度条

router.beforeEach(function(to, from, next) {
  // 进度条开始
  console.log(2323)
  NProgress.start()
  next()
  // NProgress.done()
})